package com.eascs.workflow.common.entity.sys;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="wf_message")
public class SysMessage implements Serializable{

	private static final long serialVersionUID = 1L;
	/*消息发送类型: 立即发送*/
	public static final String SEND_TYPE_IMMEDIATELY="IMM";
	/*消息发送类型: 定时发送*/
	public static final String SEND_TYPE_SCHEDULED="TMM";

	/** 主键 */
    @Column(name = "message_id")
   	@Id
	private String messageId;
    /** 消息内容*/
	private String content;
	/** 接受人姓名*/
	@Column(name = "receive_name")
	private String receiveName;
	/** 接受人电话*/
	@Column(name = "receive_telphone")
	private String receiveTelphone;
	/** 发送人姓名*/
	@Column(name = "send_name")
	private String sendName;
	/** 消息发送类型: 1定时发送 2立即发送*/
	@Column(name = "send_type")
	private String sendType;
	/**  状态：0未发送 1已发送*/
    private int status;
	/**  发送时间*/
    @Column(name = "send_time")
    private Date sendTime;
    /**  创建时间*/
    @Column(name = "create_time")
    private Date createTime;
	public String getMessageId() {
		return messageId;
	}
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getReceiveName() {
		return receiveName;
	}
	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}
	public String getReceiveTelphone() {
		return receiveTelphone;
	}
	public void setReceiveTelphone(String receiveTelphone) {
		this.receiveTelphone = receiveTelphone;
	}
	public String getSendName() {
		return sendName;
	}
	public void setSendName(String sendName) {
		this.sendName = sendName;
	}
	public String getSendType() {
		return sendType;
	}
	public void setSendType(String sendType) {
		this.sendType = sendType;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "SysMessage [messageId=" + messageId + ", content=" + content + ", receiveName=" + receiveName
				+ ", receiveTelphone=" + receiveTelphone + ", sendName=" + sendName + ", sendType=" + sendType
				+ ", status=" + status + ", sendTime=" + sendTime + ", createTime=" + createTime + "]";
	}
    
    
    
}
